﻿<%@ Page Title="" Language="C#" MasterPageFile="~/user/MasterPage2.master" AutoEventWireup="true" CodeFile="ShowMoreNews.aspx.cs" Inherits="user_ShowMoreNews" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:SqlDataSource ID="sdsMoreNews" runat="server" ConnectionString="<%$ ConnectionStrings:keshe2ConnectionString %>" ProviderName="<%$ ConnectionStrings:keshe2ConnectionString.ProviderName %>" SelectCommand="SELECT 编号, 标题, 时间 FROM 通知 ORDER BY 时间 DESC"></asp:SqlDataSource>
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" DataSourceID="sdsMoreNews" CellPadding="4" ForeColor="#333333" GridLines="None">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:BoundField DataField="编号" HeaderText="编号" Visible="False" />
            <asp:HyperLinkField DataNavigateUrlFields="编号" DataNavigateUrlFormatString="NewsDetail.aspx?id={0}" DataTextField="标题" HeaderText="标题">
            <ItemStyle Width="300px" />
            </asp:HyperLinkField>
            <asp:BoundField DataField="时间" HeaderText="发布日期">
            <ItemStyle Width="150px" />
            </asp:BoundField>
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
</asp:Content>

